package mybean.data;

import javax.sql.rowset.*;

public class DataByPage {
	CachedRowSet rowset = null; //存储表中全部记录的行集对象
	int pageSize=3;//每页显示的记录数
	int totalPages=1;//分页后的总页数
	int currentPage=1;//当前显示页
	public void setRowSet(CachedRowSet set) {
		rowset = set;		
	}
	public CachedRowSet getRowSet() {
		return rowset;		
	}
	public void setPageSize(int size) {
		pageSize=size;		
	}
	public int getPageSize() {
		return pageSize;		
	}
	public void setTotalPages(int n) {
		totalPages=n;		
	}
	public int getTotalPages() {
		return totalPages;		
	}
	public void setCurrentPage(int n) {
		currentPage=n;		
	}
	public int getCurrentPage() {
		return currentPage;		
	}
	
}
